//
//  MTLiveFunctionView.h
//  MeToo
//
//  Created by 俊松何 on 2018/7/18.
//  Copyright © 2018年 tianxie. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    MTLiveFunctionBeautiful,
    MTLiveFunctionFlip,
    MTLiveFunctionShare,
    MTLiveFunctionFlash,
    MTLiveFunctionNotice,
    MTLiveFunctionMute,
    MTLiveFunctionManager,
    MTLiveFunctionNone
} MTLiveFunction;

@interface MTLiveFunctionModel : NSObject

@property(nonatomic,copy) NSString *name;
@property(nonatomic,copy) NSString *image;
@property(nonatomic,assign) MTLiveFunction type;
-(instancetype)initWithName:(NSString *)name
                      image:(NSString *)image
                       type:(MTLiveFunction)type;
@end

@interface MTLiveFunctionItemCell : UICollectionViewCell

@property(nonatomic,strong) MTLiveFunctionModel *model;

@end

@protocol MTLiveFunctionViewDelegate <NSObject>

//开关美颜
-(void)mtLiveFunctionViewBeautifulClick:(BOOL)beautiful;
//分享view
-(void)mtLiveFunctionViewShareClick;
//开关闪光
-(BOOL)mtLiveFunctionViewFlashClick:(BOOL)onofff;
//开关静音
-(BOOL)mtLiveFunctionViewMute:(BOOL)onofff;
//摄像头翻转
-(void)mtLiveFunctionViewFlipClick;
//发公告
-(void)mtLiveFunctionViewNoticeClick;
//管理按钮
-(void)mtLiveFunctionViewManagerClick;

@end

@interface MTLiveFunctionView : UIView

@property(nonatomic,weak) id<MTLiveFunctionViewDelegate> delegate;

-(void)show;
-(void)dismis;
@end
